package com.itheima.ydd.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.ydd.entity.Menu;
import com.itheima.ydd.mapper.MenuMapper;
import com.itheima.ydd.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.List;

/**
 * @author maorf
 * @version 1.0
 */
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements MenuService {
    @Autowired
    private MenuMapper menuMapper;

    @Override
    public List<Menu> menuList(String[] role_id) {

//        List<Menu> menuList = menuMapper.findMenuList(strings);
        //log.error("role_id"+Arrays.toString(role_id));


        List<Menu> menuList = menuMapper.findMenuList(role_id);
        return menuList;
    }
}
